package cn.wolfcode.filter;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Description: 消息标签
 * @Author: 伍家钰
 * @Date: 2020/9/4 12:57
 * @Version: 1.0
 */
@Component
@RocketMQMessageListener(
        topic = "01-tag-hello",
        consumerGroup = "wolfcode-tage"
)
public class TagConsumerTest implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("消费消息:"+s);
    }
}
